
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" name="viewport">
        <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
        <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        {$page_seo}
        <link type="text/css" rel="stylesheet" href="{res file=css/index.css}">
        <link type="text/css" rel="stylesheet" href="{res file=css/flexslider.css}">
        <link type="text/css" rel="stylesheet" href="{res file=css/mmenu.css}">
        <script type="text/javascript" src="{res file=js/jquery.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{res file=js/jquery.flexslider.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{res file=js/touchslider.dev.js}"></script>
        <script type="text/javascript" src="{res file=js/jquery.mmenu.min.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{lib file=mall.js}" charset="utf-8"></script>

    </head>
    <body>
        <div id="page">
            {include file=header.html}
            <div class="content">

                <!----轮播-------->
                <div class="banner">   
                    <!---轮播开始------>
                    <section class="slider" style="overflow:hidden;"> 
                        <div class="flexslider" id="z_slider">
                            <ul class="slides">
                                <!--{foreach from=$goods_images item=goods_iamge}-->
                                <li>
                                    <!-- {if $goods_iamge.image_link}-->
                                    <a href="{$goods_iamge.image_link}"> <img height="200px"  src="{$site_url}/{$goods_iamge.image_url}"/></a>
                                    <!--{else}-->
                                    <img height="200px"  src="{$site_url}/{$goods_iamge.image_url}"/>
                                    <!--{/if}-->
                                </li>
                                <!--{/foreach}-->

                            </ul>
                        </div>
                    </section>
                </div>
                <script>
                    $(window).load(function() {
                        $('.flexslider').flexslider({
                            animation: "slide"
                        });
                    });
                </script>
                <!-------轮播结束------------> 
                <div class="sort">
                    <ul>
                        <!--{if $store.radio_new eq '1'}-->
                        <a href="index.php?app=store&act=search&id={$store.store_id}&order=add_time">
                            <li>
                                <div class="imgbox"><img src="<!--{if $store.store_new_images}-->{$store.store_new_images} <!--{else}-->{res file=images/sr1.png} <!--{/if}-->"></div>
                                <span>最新商品</span>
                            </li>
                        </a>
                        <!--{/if}-->
                        <!--{if $store.radio_recommend eq '1'}-->
                        <a href="index.php?app=store&act=search&id={$store.store_id}&recommended=1">
                            <li>
                                <div class="imgbox"><img src="<!--{if $store.store_recommend_images}-->{$store.store_recommend_images} <!--{else}-->{res file=images/sr2.png}<!--{/if}-->"></div>
                                <span>推荐商品</span>
                            </li>
                        </a>
                        <!--{/if}-->
                        <!--{if $store.radio_hot eq '1'}-->
                        <a href="index.php?app=store&act=search&id={$store.store_id}&order=views">
                            <li>
                                <div class="imgbox"><img src="<!--{if $store.store_hot_images}-->{$store.store_hot_images} <!--{else}-->{res file=images/sr3.png}<!--{/if}-->"></div>
                                <span>热门商品</span>
                            </li>
                        </a>
                        <!--{/if}-->
                                                    <!--{foreach from=$store.store_gcates item=gcategory}-->
                        <a href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id}">
                        <li>
                        <div class="imgbox"><img src="{res file=images/sr1.png} "></div>
                        <span>{$gcategory.value|escape}</span></li>
                        </a>
                        <!--{/foreach}-->


                    </ul>
                </div>
            </div>


            <!---------------团购-------------------->
            <!--{if $groupbuy_list}-->
            <h2 class="tuan-title">最新团购</h2>
            <div class="tuan_box swipe">
                <ul class="tuan_list"  id="slider1">
                    <!-- {foreach from=$groupbuy_list item=group} -->

                    <li>
                        <a href="{url app=groupbuy&id=$group.group_id}">
                            <div class="con">
                                <div class="tuan_imgbox">
                                    <img src="{$group.default_image}">
                                    <p style="margin:0;">{$group.group_name|escape}</p>
                                </div>
                                <span class="tuan_price">团购价：<strong>{$group.group_price|price}</strong></span>
                                <!--{if $group.state eq 1}-->
                                <span class="s_time"><img src="{res file=images/time.png}">剩余：{$group.lefttime}</span>
                                <!--{elseif $group.state eq 2}-->
                                <span class="s_time">活动已结束</span>
                                <!--{elseif $group.state eq 3}-->
                                <span class="s_time">活动已完成</span>
                                <!--{elseif $group.state eq 4}-->
                                <span class="s_time">活动已取消</span>
                                <!--{/if}-->
                            </div>
                        </a>
                    </li>
                    <!-- {/foreach} -->
                </ul>
                <span onClick="t1.prev();" class="prenext pre"></span>
                <span onClick="t1.next();" class="prenext next"></span>
            </div>
            <!--{/if}-->  


            <!-----列表--------->
            <!--{if $recommended_goods}-->
            <div class="lists">
                <h2>橱窗推荐<a href="index.php?app=store&act=search&id={$store.store_id}&recommended=1">查看更多>></a></h2>
                <ul>
                    <!--{foreach from=$recommended_goods item=rgoods}-->

                    <a href="{url app=goods&id=$rgoods.goods_id}">
                        <li>
                            <img src="{$rgoods.default_image}" />
                            <p>{$rgoods.goods_name|escape}</p>
                            <span>{$rgoods.price|price}</span>
                        </li>
                    </a>
                    <!-- {/foreach} -->
                </ul>
            </div>
            <!--{/if}-->
            <!--{if $new_goods}-->
            <div class="lists">
                <h2>新品上市<a href="index.php?app=store&act=search&id={$store.store_id}&order=add_time">查看更多>></a></h2>
                <ul>
                    <!--{foreach from=$new_goods item=ngoods}-->
                    <a href="{url app=goods&id=$ngoods.goods_id}">
                        <li>
                            <img src="{$ngoods.default_image}" />
                            <p>{$ngoods.goods_name|escape}</p>
                            <span>{$ngoods.price|price}</span>
                        </li>
                    </a>
                    <!--{/foreach}-->
                </ul>
            </div>
            <!--{/if}-->
            {include file=footer.html}
        </div>
        <script>
                           var t1 = new TouchSlider('slider1', {'auto': true, speed: 600, timeout: 6000})
        </script>

    </body>
</html>
